package com.example.ribbontemp.web;

import com.example.ribbontemp.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: HelloControler
 * @Description: TODO
 * @Author: YangGuisen
 * @Date: 2018/7/13 11:09
 * @Version: 1.0
 */

@RestController
public class HelloControler {

    @Autowired
    HelloService helloService;

    @RequestMapping(value = "/hi")
    public String hi(@RequestParam String name) {
        System.out.println("--------"+name);
        String str =helloService.hiService(name);
        return  "ribbon reviced : "+str;
    }
}